package com.ly.heart.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.heart.domain.ContractOrderEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 合同-订单相互关联Mapper接口
 *
 * @author wutao
 * @date 2024-06-17
 */
@Mapper
public interface ContractOrderMapper extends BaseMapper<ContractOrderEntity> {

    /**
     * 查询合同-订单相互关联
     *
     * @param id 合同-订单相互关联ID
     * @return 合同-订单相互关联
     */
     ContractOrderEntity selectContractOrderEntityById ( String id );

    /**
     * 查询合同-订单相互关联列表
     *
     * @param contractOrderEntity 合同-订单相互关联
     * @return 合同-订单相互关联集合
     */
     List<ContractOrderEntity> selectContractOrderEntityList ( ContractOrderEntity contractOrderEntity );

    /**
     * 新增合同-订单相互关联
     *
     * @param contractOrderEntity 合同-订单相互关联
     * @return 结果
     */
     int insertContractOrderEntity ( ContractOrderEntity contractOrderEntity );

    /**
     * 修改合同-订单相互关联
     *
     * @param contractOrderEntity 合同-订单相互关联
     * @return 结果
     */
     int updateContractOrderEntity ( ContractOrderEntity contractOrderEntity );

    /**
     * 删除合同-订单相互关联
     *
     * @param id 合同-订单相互关联ID
     * @return 结果
     */
     int deleteContractOrderEntityById ( String id );

    /**
     * 批量删除合同-订单相互关联
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
     int deleteContractOrderEntityByIds ( String[] ids );
}
